tools/hotplug, Use udev rules instead of qemu script to setup the bridge.
authorAnthony Perard <anthony.perard@citrix.com>
Mon, 9 Aug 2010 15:46:02 +0000 (16:46 +0100)
committerAnthony Perard <anthony.perard@citrix.com>
Mon, 9 Aug 2010 15:46:02 +0000 (16:46 +0100)
commit025e84f126fcc3acdc75f7706a6e8ceac71b8d86
tree38ede4020d17f98f8307ee2c9b0bf17b55b1cc83
parent2d50ecfbf6aca65552d6864c80c00116f81230af
tools/hotplug, Use udev rules instead of qemu script to setup the bridge.
From: Anthony PERARD <anthony.perard@citrix.com>

This patch adds a second argument to vif-bridge script. It can be "vif"
or "tap". "vif" give the default behavior and "tap" just add the
interface to the found bridge when the action is "add".

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
---
 tools/hotplug/Linux/vif-bridge        |   20 ++++++---
 tools/hotplug/Linux/vif-common.sh     |   70 ++++++++++++++++++++++++---------
 tools/hotplug/Linux/xen-backend.rules |    5 +-
 tools/libxl/libxl.c                   |    6 +-
 4 files changed, 70 insertions(+), 31 deletions(-)
tools/hotplug/Linux/vif-bridge
tools/hotplug/Linux/vif-common.sh
tools/hotplug/Linux/xen-backend.rules
tools/libxl/libxl.c